package com.yhn.hxds.common.enums;

/**
 * 链接业务错误码
 *
 * @author yhn
 * @version 1.0
 * @description
 * @date 2024/7/25 16:02
 */
public enum LinkErrorEnums implements IErrorCode {

    LINK_GROUP_UPDATE_ERROR("B00301", "链接分组信息修改失败"),
    LINK_GROUP_DELETE_ERROR("B00302", "链接分组信息删除失败"),
    LINK_GENERATE_RETRY_ERROR("B00303", "生成短链接重试次数过多"),
    LINK_GENERATE_REPEAT_ERROR("B00304", "短链接生成重复"),
    LINK_NOT_EXITS_ERROR("B00305", "短链接不存在");


    private final String code;

    private final String message;

    LinkErrorEnums(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
